<%@ page language="java" import="java.util.*,show_shop.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>delete_shop</title>
    
	

  </head>
  
  <body>
    <%
    		ArrayList<goods_bean>  shop_car=new ArrayList<goods_bean>();
   			shop_car=(ArrayList<goods_bean>)session.getAttribute("car_session");
   			//goods_bean shop_car_bean=new goods_bean();
    		String a=request.getParameter("j");
   			Integer j_1=Integer.parseInt(a);
			shop_car.remove(shop_car.get(j_1));
   			session.setAttribute("car_session",shop_car);
    		response.setHeader("refresh", "2;URL="+"http://localhost:8080/practise/jsp/shop_car.jsp?id=500");
    		out.print("delete this goods Sucessfully!");
    		
    
     %>
    
    
    
    
    
    
  </body>
</html>
